﻿<controls:ChildWindow x:Class="PicturePortfolio.Silverlight.Views.UploadPhotoView"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
           xmlns:ca="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
           Width="400" Height="300" 
           Title="Upload Photo" Background="Gray">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition Height="50"></RowDefinition>
        </Grid.RowDefinitions>

        <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Stretch">
            <TextBlock  Text="Upload Logo" Height="19" Width="79"></TextBlock>
            <TextBox x:Name="txtFilePath" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  Height="30" Width="140"></TextBox>
            <Button x:Name="btnBrowse" Width="50" Height="30" Content="Browse" HorizontalAlignment="Right">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="Click">
                        <ca:ActionMessage MethodName="BrowseButtonClicked">

                        </ca:ActionMessage>
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </Button>
        </StackPanel>
        <!--<Border BorderBrush="Black" BorderThickness="3" Background="AliceBlue" AllowDrop="True">-->
        <!--<TextBlock Text="Drage the image here"></TextBlock>-->
        <!--<Image x:Name="UploadImage" Grid.Row="0" AllowDrop="True">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="Drop">
                        <ca:ActionMessage MethodName="ImageDropped">
                            <ca:Parameter Value="$eventArgs "></ca:Parameter>
                        </ca:ActionMessage>
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </Image>-->
        <!--</Border>-->
        <Button x:Name="Upload" Grid.Row="1" Width="80" Height="30" Content="Upload" HorizontalAlignment="Right" Margin="8"></Button>
    </Grid>
</controls:ChildWindow>